package com.stop.think.shiro.dao.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Entity
@Table
@Getter
@Setter
public class OrderRecord {

    public final static String STATUS_ING = "01";
    public final static String STATUS_SUC = "02";
    public final static String STATUS_FAIL = "03";

    @Id
    private String id;

    private String name;

    private BigDecimal money;

    /***
     * 币种
     */
    private String currencyCode;

    private String mark;

    /**
     * 支付订单号
     */
    @Column(nullable = false, length = 200, unique = true)
    private String payOrdNo;

    private LocalDateTime payDate;

    private LocalDateTime createDate;

    private String status;
}
